import sideConfig from "./app";
/**
 * 路由参数
 * {
        path:"/",//前台路径
        component: PostsLayout,
        name:"router-name", // keep-alive使用
        hidden:true,//侧边栏不显示
        meta:{
            role:[], // 权限节点判断
            icon:"svg-name",//侧边栏小图标
            title:"列表页" //侧边栏名称
        },
        children:[
            
        ]
    }
 */
const baseRoute = [
    {
        path:'/',
        name:"root",
        redirect: '/home',
    },
    {
        path:"/home",
        name:"home",
        component:() =>import (
            /* webpackChunkName: "home" */
            "../views/base/Home.vue"),
        children:sideConfig
    },
    {
        path:"/login",
        name:"login",
        metha:{
            title:"登录"
        },
        component:() =>import (
            /* webpackChunkName: "login" */
            "../views/base/Login.vue"),
    },
    {
        path: "/i18n",
        name: "i18n",
        meta: {
            title: '国际化语言'
        },
        component: () => import (
        /* webpackChunkName: "i18n" */
        "../views/base/I18n.vue")
    },
    {
        path: "/upload",
        name: "upload",
        hidden:true,
        meta: {
            title: '上传插件'
        },
        component: () => import (
        /* webpackChunkName: "upload" */
        "../views/base/Upload.vue")
    },
    {
        paht:"/icon",
        name:"icon",
        hidden:true,
        component: () => import (
            /* webpackChunkName: "icon" */
            "../views/base/Icon.vue"),
    },
    {
        paht:"/404",
        name:"404",
        hidden:true,
        meta: {
            title: '找不到页面'
        },
        component: () => import (
            /* webpackChunkName: "404" */
                '../views/base/404.vue')
    },
    {
        paht:"/403",
        name:"403",
        hidden:true,
        meta: {
            title: '没有权限'
        },
        component: () => import (/* webpackChunkName: "403" */
                '../views/base/403.vue')
    }
]

export default baseRoute;